home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-serious-
/
misc
/
calculator
/
calculator.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-07-12
|
1KB
|
46 lines
/* Calculator.h */
/* File contains functional defintions for all functions in the
Gadgets.c & Window.c files */
// These are the gadget indexes
#define MYGAD_DISPLAY (0)
#define MYGAD_9 (1)
#define MYGAD_8 (2)
#define MYGAD_7 (3)
#define MYGAD_CLEAR (4)
#define MYGAD_6 (5)
#define MYGAD_5 (6)
#define MYGAD_4 (7)
#define MYGAD_MULTIPLY (8)
#define MYGAD_DIVIDE (9)
#define MYGAD_3 (10)
#define MYGAD_2 (11)
#define MYGAD_1 (12)
#define MYGAD_ADD (13)
#define MYGAD_SUBTRACT (14)
#define MYGAD_POINT (15)
#define MYGAD_0 (16)
#define MYGAD_CHANGE_SIGN (17)
#define MYGAD_EQUALS (18)
// This is the total number of gadgets
#define NUM_GADS (19)
// This is the number of gadget special pointers
#define PTRS (1)
// This is the total numbers to be displayed at once
#define ENTRY_LENGTH (10)
struct TextAttr Topaz80 = { "topaz.font", 8, 0, 0, };
struct Library *IntuitionBase;
struct Library *GfxBase;
struct Library *GadToolsBase;
struct Gadget *createAllGadgets(struct Gadget **, void *,
UWORD, struct Gadget *[], struct StringInfo *[]);
BOOL handleGadgetEvent(struct Screen *, struct Window *, struct Gadget *,
UWORD, struct Gadget *[], int&, int&);